// import com.alibaba.druid.sql.ast.statement.SQLAlterTableItem;
// import com.alibaba.druid.sql.ast.statement.SQLSelectOrderByItem;
// import com.alibaba.druid.sql.dialect.mysql.ast.MySqlObjectImpl;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "MySqlAlterTableOrderBy.h"
#include "../../../../ast/statement/SQLSelectOrderByItem.h"
#include "../../visitor/MySqlASTVisitor.h"
#include "../../../../../utils/listTran.h"

// @Override
void MySqlAlterTableOrderBy::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlAlterTableOrderBy)))
  {
    SQLObject_list_ptr tmp = ListTran::tran_class<SQLSelectOrderByItem, SQLObject>(columns);
    acceptChild(visitor, tmp);
  }
  visitor->endVisit(SharedObject(MySqlAlterTableOrderBy));
}

SQLSelectOrderByItem_list_ptr MySqlAlterTableOrderBy::getColumns()
{
  return columns;
}

void MySqlAlterTableOrderBy::addColumn(SQLSelectOrderByItem_ptr column)
{
  columns->push_back(column);
}
